import request from '@/plugin/axios'

export function needReviews () {
  return request({
    url: 'plan/needReviews',
    method: 'get'
  })
}
export function getAllPlans (params) {
  return request({
    url: 'plan/get',
    method: 'post',
    data: params
  })
}
export function reqInfo (params) {
  return request({
    url: 'plan/info',
    method: 'get',
    params
  })
}
export function newPlan (params) {
  return request({
    url: 'plan/newPlan',
    method: 'post',
    data: params
  })
}
export function updatePlan (params) {
  return request({
    url: 'plan/updatePlan',
    method: 'post',
    data: params
  })
}
export function finish (params) {
  return request({
    url: 'plan/finish',
    method: 'post',
    data: params
  })
}
export function deletePlan (params) {
  return request({
    url: 'plan/deletePlan',
    method: 'delete',
    data: params
  })
}
